<template>
    <div class="set-layout">
        <header-view>
            <img src="../../../assets/image/back.png" alt="" class="icon" @click="goBack">
            <div class="title">账号设置</div>
            <div class="icon"></div>
        </header-view>
        <!--<ul class="person-info">-->
            <!--<li class="person-item">-->
                <!--<div class="item"><img src="../../../assets/image/touxiang.png" alt="" class="icon-40" style="margin-right: 10px;"><span class="font-large26">头像</span></div>-->
                <!--<div class="item"><span class="touxiang"></span><img src="../../../assets/image/arrow-right.png" alt="" class="arrow-right"></div>-->
            <!--</li>-->
            <!--<li class="person-item">-->
                <!--<div class="item"><img src="../../../assets/image/username.png" alt="" class="icon-40" style="margin-right: 10px;"><span class="font-large26">昵称</span></div>-->
                <!--<div class="item"><span class="font-large26" style="color: #181818;opacity: 0.5">nana酱</span><img src="../../../assets/image/arrow-right.png" alt="" class="arrow-right"></div>-->
            <!--</li>-->
        <!--</ul>-->
        <ul class="person-info">
            <!--<li class="person-item">-->
                <!--<div class="item"><img src="../../../assets/image/email.png" alt="" class="icon-40" style="margin-right: 10px;"><span class="font-large26">邮箱绑定</span></div>-->
                <!--<div class="item"><span class="font-large26" style="color: #3DC5EF">绑定邮箱账号</span><img src="../../../assets/image/arrow-right.png" alt="" class="arrow-right"></div>-->
            <!--</li>-->
            <!--<li class="person-item">-->
                <!--<div class="item"><img src="../../../assets/image/phone.png" alt="" class="icon-40" style="margin-right: 10px;"><span class="font-large26">手机绑定</span></div>-->
                <!--<div class="item"><span class="font-large26" style="color: #181818;opacity: 0.5">138****1234</span><img src="../../../assets/image/arrow-right.png" alt="" class="arrow-right"></div>-->
            <!--</li>-->
            <!--<li class="person-item">-->
                <!--<div class="item"><img src="../../../assets/image/weixin.png" alt="" class="icon-40" style="margin-right: 10px;"><span class="font-large26">微信绑定</span></div>-->
                <!--<div class="item"><span class="font-large26" style="color: #181818;opacity: 0.5">已绑定</span><img src="../../../assets/image/arrow-right.png" alt="" class="arrow-right"></div>-->
            <!--</li>-->
        </ul>
        <ul class="person-info">
            <li class="person-item" @click="changePassword">
                <div class="item"><img src="../../../assets/image/email.png" alt="" class="icon-40" style="margin-right: 10px;"><span class="font-large26">更改密码</span></div>
                <div class="item"><img src="../../../assets/image/arrow-right.png" alt="" class="arrow-right"></div>
            </li>
        </ul>
        <div class="logout" @click="logout">退出登录</div>
    </div>
</template>

<script>
    import HeaderView from '../../common/HeaderView';

    export default {
        name: 'SetView',
        components: {HeaderView},
        data() {
            return {

            }
        },
        methods: {
            goBack() {
                this.$router.push({name: 'index',params: {index: 4}})
            },
            async logout() {
                await this.$store.dispatch('index/logout')
            },
            changePassword() {
                this.$router.push({name: 'updatePwd'})
            }
        }
    }
</script>

<style scoped>
    .title {
        flex: 1;
    }
    .set-layout {
        background: #F5F8FB;
        min-height: 92vh;
        padding: 0 20px;
        margin-top: 135px;
    }
    .person-info {
        width: 710px;
        /*height: 249px;*/
        background: #FFFFFF;
        box-shadow: 0 5px 10px 0 rgba(53, 191, 233, 0.09);
        border-radius: 30px;
        padding: 0 39px;
        box-sizing: border-box;
        margin-bottom: 10px;
    }
    .person-item {
        height: 116px;
        border-bottom: 1px solid rgba(0,0,0,0.1);
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    .item {
        display: flex;
        align-items: center;
    }
    .arrow-right {
        width: 13px;
        height: 21px;
        margin-left: 26px;
    }
    .touxiang {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        background: aqua;
    }

    .logout {
        width: 549px;
        height: 129px;
        background-image: url("../../../assets/image/logout.png");
        background-size: 100%;
        background-repeat: no-repeat;
        color: #fff;
        text-align: center;
        font-size: 26px;
        line-height: 110px;
        margin: 66px auto 0;
    }

</style>